export function config(data: any) {
  data.manageFinanciaSumConfig = [
    {
      prop: 'yearReceivableAmount',
      label: '本年应收',
      value: '',
      decimals: 2,
      unit: '万元'
    },
    {
      prop: 'yearReceivedAmount',
      label: '本年实收',
      value: '',
      decimals: 2,
      unit: '万元'
    },
    {
      prop: 'collectedRate',
      label: '收缴率',
      value: '',
      decimals: 2,
      unit: '%',
      formatter:(item: { collectedRate: number }) => {
        return (item.collectedRate * 100).toFixed(2) || '-'
      }
    },
    {
      prop: 'yearUnReceivedAmount',
      label: '本年待收',
      value: '',
      decimals: 2,
      unit: '万元'
    },
  ]
  data.manageOperationalTarget = [
    {
      prop: 'rentedTotalArea',
      label: '在租总面积',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'vacancyTotalArea',
      label: '空置总面积',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'validContNum',
      label: '运行合同数量',
      value: '',
      decimals: 0,
      unit: '份'
    },
    {
      prop: 'expireArea',
      label: '即将到期(180天)',
      value: '',
      decimals: 2,
      unit: '㎡'
    },
  ]
  data.financiaTableConfig = [
    {
      label: '企业名称',
      prop: 'companyName',
      dataType: 'tiem',
      width: 130
    },
    {
      label: '本月应收(万元)',
      prop: 'monthReceivableAmount',
      dataType: 'money',
      unit: 10000,
      width: 120
    },
    {
      label: '实收金额(万元)',
      prop: 'monthReceivedAmount',
      dataType: 'money',
      unit: 10000,
      width: 120
    },
    {
      label: '收缴率(%)',
      prop: 'monthCollectedRate',
      dataType: 'rate',
      width: 90
    },
  ]
  data.operationalTarget = [
    {
      prop: 'monthSignNum',
      label: '本月新签',
      decimals: 0,
      unit: '份'
    },
    {
      prop: 'monthSignArea',
      label: '本月签约总面积',
      decimals: 2,
      unit: '万m²'
    },
    {
      prop: 'monthRescindArea',
      label: '本月退租',
      decimals: 2,
      unit: '万m²'
    },
    {
      prop: 'operatingContNum',
      label: '运营合同数量',
      decimals: 0,
      unit: '份'
    },
  ]
  data.operationalTargetTableConfig = [
    {
      label: '企业名称',
      prop: 'companyName',
      dataType: 'tiem',
      width: 130
    },
    {
      label: '空置面积(万㎡)',
      prop: 'vacantArea',
      dataType: 'money',
      unit: 10000,
      width: 120
    },
    {
      label: '租赁面积(万㎡)',
      prop: 'rentedArea',
      dataType: 'money',
      unit: 10000,
      width: 120
    },
    {
      label: '出租率(%)',
      prop: 'rentedRate',
      dataType: 'rate',
      width: 90
    },
  ]
}